package org.dromara.bean.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.bean.domain.HisMember;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 患者视图对象 his_member
 *
 * @author Lion Li
 * @date 2024-11-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HisMember.class)
public class HisMemberVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 患者名称
     */
    @ExcelProperty(value = "患者名称")
    private String name;

    /**
     * 昵称
     */
    @ExcelProperty(value = "昵称")
    private String nickName;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String photo;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String idCard;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String mobile;

    /**
     * 生日
     */
    @ExcelProperty(value = "生日")
    private String birthday;

    /**
     * 0女1男3未知
     */
    @ExcelProperty(value = "0女1男3未知")
    private Long gender;

    /**
     * 微信openId
     */
    @ExcelProperty(value = "微信openId")
    private String openId;


    /**
     * 用户类型
     */
    private String userType;
    @ExcelProperty(value = "备注")
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
